import React, { Component } from 'react';

import eventBus from './eventbus'
console.log('eventBus', eventBus);
export default class Son1 extends Component {
    state = {
        sayword: '兄弟,我想你啦!!'
    }
    render() {
        return (
            <div onClick={() => {
                eventBus.emit('myevent', this.state.sayword)
            }}>Son1</div>
        )
    }
}
